﻿namespace Jim.OA;

/// <summary>
/// 注册应用
/// </summary>
[Sdk("/api/ec/dev/auth/regist","注册应用")]
public class OARegistInput : ISdkRequest<OARegistOutput>, ISdkCustomHeader, IOALogin
{
    [JsonIgnore]
    public string Cpk { get; set; }
    public SdkDictionary Headers()
    {
        return new SdkDictionary
        {
            { "cpk",Cpk}
        };
    }
}
public class OARegistOutput : SdkResponse<OARegistData>
{
}

public class OARegistData
{
    /// <summary>
    /// 信息显示类型。默认“none”
    /// </summary>
    public string MsgShowType { get; set; }
    /// <summary>
    /// 秘钥信息
    /// </summary>
    public string Secret { get; set; }
    /// <summary>
    /// 响应状态。true:成功,false:失败
    /// </summary>
    public bool Status { get; set; }
    /// <summary>
    /// 系统公钥信息
    /// </summary>
    public string Spk { get; set; }
}